package com.briup.entity;

import java.io.Serializable;
import java.sql.Timestamp;

/**
 * 环境数据 实体类型
 */
public class Environment implements Cloneable, Serializable {
    static final long serialVersionUID = 42L;
    /**
     * 环境数据种类： 温度  湿度  光照强度  二氧化碳
     */
    private String name;

    /**
     * 发送端id
     */
    private String srcId;
    /**
     * 树莓派系统id
     */
    private String  descId;
    /**
     * 区域模块id
     */
    private String  devId;
    /**
     *传感器个数
     */
    private   int  count;
    /**
     * 指令标号
     */
    private String cmd;
    /**
     * 环境数据
     */
    private float data;
    /**
     * 状态标识
     */
    private int  status;
    /**
     * 采集时间
     */
    private Timestamp gatherDate;

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getSrcId() {
        return srcId;
    }

    public void setSrcId(String srcId) {
        this.srcId = srcId;
    }

    public String getDescId() {
        return descId;
    }

    public void setDescId(String descId) {
        this.descId = descId;
    }

    public String getDevId() {
        return devId;
    }

    public void setDevId(String devId) {
        this.devId = devId;
    }

    public int getCount() {
        return count;
    }

    public void setCount(int count) {
        this.count = count;
    }

    public String getCmd() {
        return cmd;
    }

    public void setCmd(String cmd) {
        this.cmd = cmd;
    }

    public float getData() {
        return data;
    }

    public void setData(float data) {
        this.data = data;
    }

    public int getStatus() {
        return status;
    }

    public void setStatus(int status) {
        this.status = status;
    }

    public Timestamp getGatherDate() {
        return gatherDate;
    }

    public void setGatherDate(Timestamp gatherDate) {
        this.gatherDate = gatherDate;
    }

    @Override
    public String toString() {
        return "Environment{" +
                "name='" + name + '\'' +
                ", srcId='" + srcId + '\'' +
                ", descId='" + descId + '\'' +
                ", devId='" + devId + '\'' +
                ", count=" + count +
                ", cmd='" + cmd + '\'' +
                ", data=" + data +
                ", status=" + status +
                ", gatherDate=" + gatherDate +
                '}';
    }

    @Override
    public Environment clone() throws CloneNotSupportedException {
       return (Environment) super.clone();
    }
}
